In a modern plant, nitrogen fertilizer is produced from natural gas. In several transformation steps, natural gas, essentially methane, is upgraded by combination with nitrogen from the air to form nitrogen fertilizer. 80% of the gas is used as feedstock for fertilizer while 20% is used for heating the process and producing electricity.